<?php
/* @var $this UserController */
/* @var $model User */
/* @var $form CActiveForm */
?>

<div class="wide form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
)); ?>

<table>

	
	<tr>
		<td >
			Batch Id:			
		</td>
		<td > 		
			<?php echo $form->textField($model,'batch',array('size'=>6,'maxlength'=>5)); ?>
		</td>
	</tr>	
	
	<tr>
		<td >
			Username:			
		</td>
		<td > 		
			<?php echo $form->textField($model,'username',array('size'=>12,'maxlength'=>10)); ?>
		</td>
	</tr>


	<tr>
		<td >
			Full name
		</td>
		<td > 		
			<?php echo $form->textField($model,'fullname',array('size'=>45,'maxlength'=>45)); ?>
		</td>
	</tr>

	<tr>
		<td >
			Enabled
		</td>
		<td > 		
			<?php echo $form->dropDownList($model, 'enabled',
											array('1'=>'Yes',
												  '0'=>'No',
												  ),
											array('empty'=>''),
											array('style'=>'width:50px;',));?>		
		</td>
	</tr>

	<tr>
		<td >
			Role ID
		</td>
		<td > 		
		<?php echo $form->dropDownList($model,'idrole',
									   CHtml::listData(Role::model()->findAll(array('order'=>'name ASC','condition'=>'team_id= '.Yii::app()->user->team_id)),
													   'idrole', 
													   'name'),	
										array('empty'=>''));?>
		</td>
	</tr>
	
	<tr>
		<td >
			Email
		</td>
		<td > 		
			<?php echo $form->textField($model,'email',array('size'=>25,'maxlength'=>45)); ?>
		</td>
	</tr>	
	
	<tr>
		<td >
			Team:
		</td>
		<td >			
		<?php echo $form->dropDownList($model,'team',
									   CHtml::listData(Team::model()->findAll(),
													   'idteam', 
													   'short_name'),	
										array('empty'=>''));?>
		</td>
	</tr>		
	
</table>

<br>
	<div class="buttons">
		<?php echo CHtml::submitButton('Search'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- search-form -->